package access;
import static util.Print.*;

public class Exercise5 {

  public static void main(String[] args) {
    print("i = " + TestAccess.i);
    print("j = " + TestAccess.j);
    print("k = " + TestAccess.k);
//    print("l = " + TestAccess.l);  //private filed can not be read from outside the class
    
    TestAccess.f1();
    TestAccess.f2();
    TestAccess.f3();
//    TestAccess.f4();  //private method can not be called from outside the class
    
    
    
  }
  
  
}

class TestAccess {
  
  public static int i = 0;
  protected static int j = 0;
  static int k = 0;
  private static int l = 0;
  
  public static void f1() {
    print("public method called");
  }
  
  protected static void f2() {
    print("protected method called");
  }
  
  static void f3() {
    print("package method called");
  }
  
  private static void f4() {
    print("private method called");
  }
  
  
  
  
  
  
  
}
